package com.evony.common.module.colony 
{
    import com.evony.common.*;
    import com.evony.common.beans.*;
    
    public class ColonialDeployResponse extends com.evony.common.BaseBean
    {
        public function ColonialDeployResponse(arg1:String, arg2:Object, arg3:Boolean=false, arg4:Boolean=false)
        {
            var loc1:*=0;
            super(arg1, arg3, arg4);
            if (arg2.errorMsg != null) 
            {
                this.errorMsg = arg2.errorMsg;
            }
            if (arg2.msg != null) 
            {
                this.msg = arg2.msg;
            }
            if (arg2.ok != null) 
            {
                this.ok = arg2.ok;
            }
            if (arg2.packageId != null) 
            {
                this.packageId = arg2.packageId;
            }
            if (arg2.reduceCoolDown != null) 
            {
                this.reduceCoolDown = arg2.reduceCoolDown;
            }
            if (arg2.troopBean != null) 
            {
                this.troopBean = new com.evony.common.beans.TroopBean(arg2.troopBean);
            }
            return;
        }

        public function toObject():Object
        {
            var loc1:*=new Object();
            loc1.errorMsg = this.errorMsg;
            loc1.msg = this.msg;
            loc1.ok = this.ok;
            loc1.packageId = this.packageId;
            loc1.reduceCoolDown = this.reduceCoolDown;
            loc1.troopBean = this.troopBean.toObject();
            return loc1;
        }

        public override function toDebugString(arg1:String=""):String
        {
            var loc1:*=0;
            var loc2:*="---- ColonialDeployResponse ----\n";
            loc2 = loc2 + (arg1 + "errorMsg = " + this.errorMsg + "\n");
            loc2 = loc2 + (arg1 + "msg = " + this.msg + "\n");
            loc2 = loc2 + (arg1 + "ok = " + this.ok + "\n");
            loc2 = loc2 + (arg1 + "packageId = " + this.packageId + "\n");
            loc2 = loc2 + (arg1 + "reduceCoolDown = " + this.reduceCoolDown + "\n");
            if (troopBean == null) 
            {
                loc2 = loc2 + (arg1 + "troopBean = null\n");
            }
            else 
            {
                loc2 = loc2 + this.troopBean.toDebugString(arg1 + "troopBean.");
            }
            return loc2;
        }

        public function copyTo(arg1:com.evony.common.module.colony.ColonialDeployResponse):void
        {
            arg1.errorMsg = this.errorMsg;
            arg1.msg = this.msg;
            arg1.ok = this.ok;
            arg1.packageId = this.packageId;
            arg1.reduceCoolDown = this.reduceCoolDown;
            if (troopBean == null) 
            {
                arg1.troopBean = null;
            }
            else 
            {
                this.troopBean.copyTo(arg1.troopBean);
            }
            return;
        }

        public var msg:String;

        public var packageId:Number;

        public var troopBean:com.evony.common.beans.TroopBean;

        public var reduceCoolDown:Number;

        public var errorMsg:String;

        public var ok:int;
    }
}
